<div class="modal-header">
    <h3 class="modal-title">共享汽车票班次</h3>
</div>
<div class="modal-body">
    <form name="myForm" class="form-horizontal form-validation">
        <div class="panel panel-default">
            <div class="panel-body">
                <div class="form-group">
                    <label class="col-sm-11 control-label">说明：关联班次的线路必须与所选始发站点和目的站点相同,否则关联失败</label>
                </div>
                <div class="form-group">
                    <label class="col-sm-4 control-label">班次号：</label>
                    <div class="col-sm-6">
                        <input type="text" class="form-control" ng-model="param.data.shiftNo" readonly="readonly" required />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-4 control-label">线路名：</label>
                    <div class="col-sm-6">
                        <input type="text" class="form-control" ng-model="param.data.route.name" readonly="readonly" required />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-4 control-label">
                        <span style="color: red; text-align: center;">* &nbsp</span>汽车票班次号：
                    </label>
                    <div class="col-sm-6">
                        <input type="text" class="form-control" placeholder="班次号" ng-model="attached.shiftNo" ng-maxlength="10" required/>
                    </div>
                    <label class="col-sm-2 control-label">
                        <span class="pull-left">必填。</span>
                    </label>
                </div>
                <div class="form-group">
                    <label class="col-sm-4 control-label">
                        <span style="color: red; text-align: center;">* &nbsp</span>汽车票始发客运站：
                    </label>
                    <div class="col-sm-6">
                        <ui-select ng-model="startList.selected" theme="bootstrap">
                            <ui-select-match placeholder="始发客运站">{{$select.selected.name}}</ui-select-match>
                            <ui-select-choices repeat="start in startList | propsFilter: {name: $select.search}">
                                <span ng-bind-html=" start.name| highlight: $select.search"></span>
                            </ui-select-choices>
                        </ui-select>
                    </div>
                    <label class="col-sm-2 control-label">
                        <span class="pull-left">必选。</span>
                    </label>
                </div>
                <div class="form-group">
                    <label class="col-sm-4 control-label">
                        <span style="color: red; text-align: center;">* &nbsp</span>汽车票目的站名：
                    </label>
                    <div class="col-sm-6">
                        <input type="text" class="form-control" placeholder="终点站名" ng-model="attached.terminal" ng-maxlength="10" required/>
                    </div>
                    <label class="col-sm-2 control-label">
                        <span class="pull-left">必填。</span>
                    </label>
                </div>
            </div>
            <footer class="panel-footer text-right bg-light lter">
                <button class="btn btn-danger" type="button" ng-click="detach()" ng-disabled="!attachedFlag">删除共享</button>
                <button class="btn btn-default" type="button" ng-click="cancel()">取消</button>
                <button type="submit" class="btn btn-success" ng-click="ok()">提交</button>
            </footer>
        </div>
    </form>
</div>